package com.hand.test02.service;

import com.hand.test02.domain.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;

/**
 * @author 马旭阳
 * @date2019/7/26
 */
@FeignClient("app-order")
public interface IUserService {
    @GetMapping("/id")
    User queryUserById(@Param("id") Integer id);
    @PostMapping("/user")
    void insertUser(@Param("user") User user);
    @PutMapping("/name")
    void updateUser(@Param("user") User user);
    @DeleteMapping("/userId")
    void deleteUser(@Param("id") Integer id);



}
